* {
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    background: black;
}

.total {
    width: 200px;
    height: 30px;
    background-color: #fff;
    border: 3px solid #ccc;
    position: relative;
    top: 0;
    left: 0;
    z-index: 2;
}

.total .num {
    height: 30px;
    background-color: red;
}